addroutelinux
iprouteadddefaultvia网关下面只举一个例子说明一下。比如增加一条到达主机10.2.111.112的路由,网关是10.1.111.112iprouteadd10.2.111.112via ...,TheeasiestwaytoaddarouteonLinuxistousethe“iprouteadd”commandfollowedbythenetworkaddresstobereachedandthegatewaytobeusedforthis ...,Topermanentlyconfigurestaticroutes,youcanconfigurethembycreatingaroute-interfacefileinthe/etc/sysconfig/network-scripts/directo...
Linux如何在開機時自動設定static route?
若不是有跨網段的需求,其實staticroute用到的機會少之又少,畢竟一般人所處的環境是簡單不過了!一般的狀況下,大家只會有區域網路的routing,再來則是defaultgateway,這兩個通常不用特別設定,反正一直以來系...


